package DesignPattern.decorate;

public abstract class Decorator implements Component {
	
	private Component component;
	
	@Override
	public void operation() {
		if(component != null) {
			component.operation();
		}
	}

	public void setComponent(Component component) {
		this.component = component;
	}
}
